package com.shiguiwu.springboot3.cart.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

/**
 * @description: 公共服务类
 * @author: stone
 * @date: Created by 2023/12/31 22:42
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springboot3.cart.service
 */
@Service
@RefreshScope
public class CommonService {

    @Value("${cart.nickname:}")
    private String name;

    public String test() {
        return name;
    }
}
